package com.ermao.service;

import com.ermao.dao.BodyMapper;
import com.ermao.pojo.Body;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Ermao
 * Date: 2021/12/25 16:59
 */
@Service
public class BodyServiceImpl implements BodyService {

	private BodyMapper bodyMapper;

	@Autowired
	public void setWheelMapper(BodyMapper bodyMapper) {
		this.bodyMapper = bodyMapper;
	}

	@Override
	public List<Body> selectAllBodies() {
		return bodyMapper.selectList(null);
	}
}
